﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace AMebooking.Models
{
    public class Department
    {
        public string Code { get; set; }
        public string Description { get; set; }
       // Constructor
        public Department(string code2, string Description2)
        {
            Code = code2;
            Description = Description2;
        }
        public Department()
        { }


        public override string ToString()
        {
            string objFormat = "\"Code\": \"{0}\""
                               + " ,\"Description\":\"{1}\"";

            var data = string.Format(objFormat, Code, Description);
            return "{" + data + "}";
        }
    }
}
